<T:ViewBase x:Class="WPFExcelReport.TGBHIST02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHDATE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHDATE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHPARTIE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHPARTIE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHPARTIEKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHPARTIEKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHLO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHLO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHLB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHLB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHLP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHLP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHLBEH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHLBEH}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GHFARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwGBHIST.GHFARBE}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsGBHIST,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwGBHIST}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwGBHIST, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="GHMANDANT"
                                    Binding="{Binding Path=GHMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHDATE"
                                    Binding="{Binding Path=GHDATE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHDATE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHPARTIE"
                                    Binding="{Binding Path=GHPARTIE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHPARTIE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHPARTIEKZ"
                                    Binding="{Binding Path=GHPARTIEKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHPARTIEKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHLO"
                                    Binding="{Binding Path=GHLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHLB"
                                    Binding="{Binding Path=GHLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHLP"
                                    Binding="{Binding Path=GHLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHLBEH"
                                    Binding="{Binding Path=GHLBEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHLBEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHART"
                                    Binding="{Binding Path=GHART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHVAR"
                                    Binding="{Binding Path=GHVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHFARBE"
                                    Binding="{Binding Path=GHFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHFERTKZ"
                                    Binding="{Binding Path=GHFERTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHFERTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHZS"
                                    Binding="{Binding Path=GHZS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHZS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHSPSTA"
                                    Binding="{Binding Path=GHSPSTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHSPSTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHSPGRD"
                                    Binding="{Binding Path=GHSPGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHSPGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBSTKA"
                                    Binding="{Binding Path=GHBSTKA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBSTKA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBSTSP"
                                    Binding="{Binding Path=GHBSTSP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBSTSP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBSTKG"
                                    Binding="{Binding Path=GHBSTKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBSTKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBSTKGR"
                                    Binding="{Binding Path=GHBSTKGR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBSTKGR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBSTKGW"
                                    Binding="{Binding Path=GHBSTKGW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBSTKGW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK1"
                                    Binding="{Binding Path=GHHHK1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK2"
                                    Binding="{Binding Path=GHHHK2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK3"
                                    Binding="{Binding Path=GHHHK3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK4"
                                    Binding="{Binding Path=GHHHK4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK5"
                                    Binding="{Binding Path=GHHHK5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK6"
                                    Binding="{Binding Path=GHHHK6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK7"
                                    Binding="{Binding Path=GHHHK7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK8"
                                    Binding="{Binding Path=GHHHK8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK9"
                                    Binding="{Binding Path=GHHHK9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHK10"
                                    Binding="{Binding Path=GHHHK10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHK10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHHHKG"
                                    Binding="{Binding Path=GHHHKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHHHKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK1"
                                    Binding="{Binding Path=GHAHK1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK2"
                                    Binding="{Binding Path=GHAHK2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK3"
                                    Binding="{Binding Path=GHAHK3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK4"
                                    Binding="{Binding Path=GHAHK4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK5"
                                    Binding="{Binding Path=GHAHK5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK6"
                                    Binding="{Binding Path=GHAHK6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK7"
                                    Binding="{Binding Path=GHAHK7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK8"
                                    Binding="{Binding Path=GHAHK8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK9"
                                    Binding="{Binding Path=GHAHK9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHK10"
                                    Binding="{Binding Path=GHAHK10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHK10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAHKG"
                                    Binding="{Binding Path=GHAHKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAHKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHABPZAB"
                                    Binding="{Binding Path=GHABPZAB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHABPZAB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHBPREIS"
                                    Binding="{Binding Path=GHBPREIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHBPREIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHPART"
                                    Binding="{Binding Path=GHPART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHPART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHAVPREIS"
                                    Binding="{Binding Path=GHAVPREIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHAVPREIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHIPREIS"
                                    Binding="{Binding Path=GHIPREIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHIPREIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHINDAT"
                                    Binding="{Binding Path=GHINDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHINDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GHFILLER"
                                    Binding="{Binding Path=GHFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GHFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
